package mmorpg.base.hotswap.test;

import com.game.hotSwapAgent.HotSwapAgentClient;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @Description: 热更测试启动类
 * @Author: Mark
 * @CreateDate: 2021/12/26 15:27
 * @Copyright : 豆浆油条个人非正式工作室
 */
public class Main {

    static {
        //加载热更代理
        HotSwapAgentClient.loadAgent();
    }

    public static void main(String[] args) throws InterruptedException {
        ExecutorService executorService = Executors.newSingleThreadExecutor();
        Task task = new Task();
        while (true) {
            Thread.sleep(5000);
            executorService.execute(task);
        }
    }


}
